package com.cartoonrabbit.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuTeng
 * @since 2023-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_early_user")
@ApiModel(value="EarlyUser对象", description="")
public class EarlyUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId("user_id")
    @JsonIgnore
    private String userId;

    @ApiModelProperty(value = "累计投入")
    @TableField("total_input")
    private Long totalInput;

    @ApiModelProperty(value = "累计收入")
    @TableField("total_income")
    private Long totalIncome;

    @ApiModelProperty(value = "成功打卡天数")
    @TableField("success_days")
    private Integer successDays;

    @ApiModelProperty(value = "最高连续打卡天数")
    @TableField("continu_colock")
    private Integer continuColock;

    @ApiModelProperty(value = "当前连续打卡天数")
    @TableField("current_colcok")
    private Integer currentColcok;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;


}
